package com.ss.web.tagmark.init;

import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;

@Configuration
public class WebSecurityMessageSource {

	@Bean("messageSource")
	public MessageSource createSpringSecurityMessageSource() {
		ReloadableResourceBundleMessageSource ms = new ReloadableResourceBundleMessageSource();
		ms.setBasename("classpath:org/springframework/security/messages");
		return ms;
	}
}
